<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>我的订单</title>
    <link type="text/css" rel="stylesheet" href="/static/css/style.css" />
    <style type="text/css">
      h1 {
        text-align: center;
        margin-top: 200px;
      }
    </style>
  </head>
  <body>
    <div id="header">
      <img class="logo_img" alt="" src="/static/img/logo.gif" />
      <span class="wel_word">我的订单</span>
      <div>
        <span>欢迎<span class="um_span">{{.Phone}}</span>书文</span>
        <a href="/getOrderByUserID">我的订单</a>
        <a href="/logout">注销</a>&nbsp;&nbsp;
        <a href="/main">返回</a>
      </div>
    </div>

    <div id="main">
      <table>
        <tr>
          <th>单号</th>
          <th>日期</th>
          <th>数量</th>
          <th>金额</th>
          <th>详情</th>
          <th>发货</th>
        </tr>
        {{range .Orders}}
        <tr>
          <td>{{.OrderID}}</td>
          <td>{{.CreateTime}}</td>
          <td>{{.TotalCount}}</td>
          <td>{{.TotalAmount}}</td>
          <td><a href="/getOrderInfo?orderId={{.OrderID}}">查看详情</a></td>
          <td class="state">
            {{if .SendComplete}}
            <a href="/takeOrder?orderId={{.OrderID}}">确认收货</a>
            {{end}} {{if .NoSend}} 等待发货 {{end}} {{if .Complete}} 交易完成
            {{end}}
          </td>
        </tr>
        {{end}}
      </table>
    </div>

    <div id="bottom">
      <span> Copyright © 2007-2020 书文 版权所有 </span>
      <span> 京ICP备15025412号-2 京ICP备15025412-4号 </span>
      <span> 24小时客服电话微信15010729356 </span>
    </div>
  </body>
</html>
